package com.xjscrm.console.chat.frame.send;

import com.xjscrm.console.chat.enums.ChatMsgType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author mingyang.chen create in 2024/3/12 13:47
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel
public class SGetStaffListResultMsg extends SResultMsg {

    @ApiModelProperty("员工列表")
    private List<StaffItem> staffList = new ArrayList<>();

    public SGetStaffListResultMsg() {
        this.setResultType(ChatMsgType.s_get_staff_list_result.getCode());
        this.setResultTypeDesc(ChatMsgType.s_get_staff_list_result.getDesc());
    }

    @Data
    public static class StaffItem {
        @ApiModelProperty("员工分组名称")
        private String groupName;
        @ApiModelProperty("员工名称")
        private Long staffId;
        @ApiModelProperty("员工名称")
        private String staffName;
        @ApiModelProperty("员工账号")
        private String staffAccount;
        @ApiModelProperty("会话数量")
        private Integer sessionCount;
        @ApiModelProperty("员工头像")
        private String headImgUrl;
    }
}
